// Main.java
//
// Informatics 102 Spring 2012
// Code Example
//
// This is a brief main() method that demonstrates our aspect.

public class Main
{
	public static void main(String[] args)
	{
		Person p1 = new Person();
		p1.setName("Alex Thornton");

		// This is safe, since p1 has already been initialized.
		System.out.println(p1.getName());
		
		
		Person p2 = new Person();
		
		// This will throw an UninitializedObjectException, since p2
		// has not been initialized by having setName() called on it.
		System.out.println(p2.getName());
	}
}
